<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>$GLOBALS变量</title>
</head>
<body>
	<?php 
		$v1 = 1;
		echo "$v1";
		echo "<hr />";
		echo $GLOBALS['v1'];
	 ?>
</body>
</html>